﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ChargingSystem4.EUc
{
    public partial class UcMyAChart : UserControl
    {
        public UcMyAChart()
        {
            InitializeComponent();


        }

        private void UcMyAChart_Paint(object sender, PaintEventArgs e)
        {
            int itemWidth = (this.Width / 22);
            int itemHeight = this.Height - 3;
            Pen myPen = new Pen(Color.Red);

            myPen.Width = 4;

            Point[] points =
{
            new Point(3,itemHeight),
            new Point((itemWidth)*2*2, itemHeight),
            new Point((itemWidth)*2*2, 3),
            new Point((itemWidth)*3*2, 3),
            new Point((itemWidth)*3*2, itemHeight),

            new Point((itemWidth)*4*2, itemHeight),
            new Point((itemWidth)*((4*2)+1), 3),
            new Point((itemWidth)*((7*2)-1 ), 3),
            new Point((itemWidth)*7*2, itemHeight),
            new Point((itemWidth)*8*2, itemHeight),

            new Point((itemWidth)*8*2, 3),
            new Point((itemWidth)*9*2, 3),


            new Point((itemWidth)*9*2, itemHeight),
            new Point((itemWidth)*11*2, itemHeight)



         };

            e.Graphics.DrawLines(myPen, points);
        }
    }
}
